package be.stijn.gdocs;

import java.io.File;
import java.io.IOException;

import be.stijn.gdocs.services.GDocsServiceImpl;

import com.google.gdata.util.ServiceException;

public class Runner {

    /**
     * @param args
     * @throws ServiceException
     * @throws IOException
     */
    public static void main(String[] args) throws IOException, ServiceException {
        GDocsService gDocsService = new GDocsServiceImpl();
        gDocsService.setProxy(args[2], args[3], args[4], args[5]);
        gDocsService.login(args[0], args[1]);
        gDocsService.uploadFiles(new File("e:/test2/"));
        gDocsService.getFiles(new File("e:/test/"));
    }
}
